package com.ilovepostcard.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
<pre>
{
    "CommentID":30,
    "UserID":10415,
    "Nickname":"小黑",
    "CreatedTime":"2012-09-23T21:34:36.907",
    "Body":"111111111111111"
}
</pre>
 */
public class Comment {
    public long CommentID;
    public long UserID;
    public String Nickname;
    public String CreatedTime;
    public String Body;
    
    public void setData(JSONObject json) throws JSONException {
        CommentID = json.getLong("CommentID");
        UserID = json.getLong("UserID");
        Nickname = json.getString("Nickname");
        CreatedTime = json.getString("CreatedTime");
        Body = json.getString("Body");
    }
}
